POV-Ray : Newsgroups : povray.advanced-users : Max-value with function int() : Re: Max-value with function int() Server Time
29 Jul 2024 06:23:28 EDT (-0400)
  Re: Max-value with function int()  
From: Warp
Date: 14 May 2003 16:51:09
Message: <3ec2ac3d@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Nobody ever said POV-Ray offers infinite precision.  To the contrary, it has
> been said very often that very small or very big numbers when used will not
> always produce the desired results.

  I still think that (C's) floor() should be used instead of (C's) int()
for the POV-Ray int() function.
  Since you can represent 5000000000.25 with povray's identifier, I don't
see any reason why POV-Ray's int() should not return 5000000000.

  (Or better "x<0 ? -floor(-x) : floor(x)" to maintain the same behaviour.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.